<template>
  <div>
    <h2>v-if语法,用法</h2>
    <h3>成绩单</h3>
    <input type="number" v-model="score" min="0" max="100" />
    <p v-if="score >= 90">A</p>
    <p v-else-if="score >= 80">B</p>
    <p v-else-if="score >= 70">C</p>
    <p v-else-if="score >= 60">D</p>
    <p v-else>E</p>
  </div>
</template>

<script>
export default {
  data() {
    return {
      score: 0,
    };
  },
};
</script>

<style>
</style>